/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import DAO.Fechas;
import DAO.ValidarRutDAO;
import DAO.garantiasDAO;
import DTO.ReporteTasacionHistoricaDTO;
import DTO.garantiaHipotecariaDTO;
import DTO.tasacionGarantiaAutoDTO;
import DTO.tasacionGarantiaCdpDTO;
import DTO.tasacionGarantiaHipoDTO;
import DTO.tasacionGarantiaWarraDTO;
import DTO.usuarioDTO;
import java.text.SimpleDateFormat;
import java.util.ArrayList;

import java.sql.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFrame;
import javax.swing.table.DefaultTableModel;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperCompileManager;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.JasperReport;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
import net.sf.jasperreports.swing.JRViewer;

/**
 *
 * @author Luis Olave 10
 */
public class FormularioTasacionHistorica extends javax.swing.JFrame {

    garantiasDAO garaHipo = new garantiasDAO();
    garantiasDAO garaAuto = new garantiasDAO();
    garantiasDAO garaCdp = new garantiasDAO();
    garantiasDAO garaWarra = new garantiasDAO();
    DefaultTableModel modelo = new DefaultTableModel();
    usuarioDTO user;
    Object[] aux;
    
    private String convertirFechaString (Date date) {
        String fecha;
        try{
           fecha = (new SimpleDateFormat("dd/MM/yyyy").format(date)); 
        }catch(Exception z){
            fecha = "";
            
        }
        return fecha;
    }
    
    
    
    public FormularioTasacionHistorica(usuarioDTO user) {
        initComponents();
         this.user = user;
         chkBuscarPorRut.setSelected(true);
         chkRutTasaH.setSelected(true);
         chkBuscarRutWarraTasaH.setSelected(true);
         chkBuscarRutTasaH.setSelected(true);
         jPanelBuscarTodasLasGarantiashipo.setVisible(false);
         jPanelBuscarTodasLasGarantiasAuto.setVisible(false);
         jPanelBuscarTodasLasGarantiasWarrant.setVisible(false);
         jPanelBuscarTodasLasGarantiasCDP.setVisible(false);
         pnlIngreseRutGarante1.setVisible(false);
         pnlIngreseRutGarante3.setVisible(false);
         pnlIngreseRutGarante5.setVisible(false);
         pnlIngreseRutGarante7.setVisible(false);
         this.setDefaultCloseOperation(this.EXIT_ON_CLOSE);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        buttonGroup2 = new javax.swing.ButtonGroup();
        buttonGroup3 = new javax.swing.ButtonGroup();
        buttonGroup4 = new javax.swing.ButtonGroup();
        jLabel4 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jTabbedPane2 = new javax.swing.JTabbedPane();
        jPanel2 = new javax.swing.JPanel();
        pnlIngreseRutGarante = new javax.swing.JPanel();
        txtRutTasacionH = new javax.swing.JTextField();
        btnBuscarTasaHis = new javax.swing.JButton();
        pnlIngreseRutGarante1 = new javax.swing.JPanel();
        jLabel31 = new javax.swing.JLabel();
        btnBuscarFechaTasa = new javax.swing.JButton();
        jLabel7 = new javax.swing.JLabel();
        jcDesdeTasaH = new com.toedter.calendar.JDateChooser();
        jcHastaTasaH = new com.toedter.calendar.JDateChooser();
        chkBuscarPorRut = new javax.swing.JCheckBox();
        chkBuscarPorFechaTasa = new javax.swing.JCheckBox();
        jScrollPane1 = new javax.swing.JScrollPane();
        jPanel8 = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        jTTasacionH = new javax.swing.JTable();
        btnVolver1 = new javax.swing.JButton();
        jPanelBuscarTodasLasGarantiashipo = new javax.swing.JPanel();
        btnBuscarTodasLasGarantiashipo = new javax.swing.JButton();
        chkBuscarTodasLasGarantiashipo = new javax.swing.JCheckBox();
        btnImprimirTasacionHistoricaHipo = new javax.swing.JButton();
        jPanel3 = new javax.swing.JPanel();
        jPanel11 = new javax.swing.JPanel();
        pnlIngreseRutGarante2 = new javax.swing.JPanel();
        txtRutTasaHAuto = new javax.swing.JTextField();
        btnBuscarTasaH = new javax.swing.JButton();
        pnlIngreseRutGarante3 = new javax.swing.JPanel();
        jLabel32 = new javax.swing.JLabel();
        btnBuscarFechaTasaHist = new javax.swing.JButton();
        jLabel8 = new javax.swing.JLabel();
        jcDesdeTasaAuto = new com.toedter.calendar.JDateChooser();
        jcHastaTasaAuto = new com.toedter.calendar.JDateChooser();
        chkRutTasaH = new javax.swing.JCheckBox();
        chkFechaTasaH = new javax.swing.JCheckBox();
        jScrollPane3 = new javax.swing.JScrollPane();
        jPanel12 = new javax.swing.JPanel();
        jScrollPane5 = new javax.swing.JScrollPane();
        jTAutoTasaH = new javax.swing.JTable();
        btnVolver2 = new javax.swing.JButton();
        jPanelBuscarTodasLasGarantiasAuto = new javax.swing.JPanel();
        btnBuscarTodasLasGarantiasAuto = new javax.swing.JButton();
        chkBuscarTodasLasGarantiasAuto = new javax.swing.JCheckBox();
        btnImprimirTasacionHistoricaAuto = new javax.swing.JButton();
        jPanel4 = new javax.swing.JPanel();
        jPanel13 = new javax.swing.JPanel();
        pnlIngreseRutGarante4 = new javax.swing.JPanel();
        txtRutTasaWarra = new javax.swing.JTextField();
        btnRutTasaWarra = new javax.swing.JButton();
        pnlIngreseRutGarante5 = new javax.swing.JPanel();
        jLabel33 = new javax.swing.JLabel();
        btnBuscarWarraTasaH = new javax.swing.JButton();
        jLabel15 = new javax.swing.JLabel();
        jcDesdeWarraTasaH = new com.toedter.calendar.JDateChooser();
        jcHastaWarraaTasaH = new com.toedter.calendar.JDateChooser();
        chkBuscarRutWarraTasaH = new javax.swing.JCheckBox();
        chkFechaWarraTasaH = new javax.swing.JCheckBox();
        jScrollPane7 = new javax.swing.JScrollPane();
        jPanel15 = new javax.swing.JPanel();
        jScrollPane9 = new javax.swing.JScrollPane();
        jTWarrantTasaHist = new javax.swing.JTable();
        jPanelBuscarTodasLasGarantiasWarrant = new javax.swing.JPanel();
        btnBuscarTodasLasGarantiasWarrant = new javax.swing.JButton();
        chkBuscarTodasLasGarantiasWarrant = new javax.swing.JCheckBox();
        btnVolver3 = new javax.swing.JButton();
        btnImprimirTasacionHistoricaWarra = new javax.swing.JButton();
        jPanel9 = new javax.swing.JPanel();
        jPanel16 = new javax.swing.JPanel();
        pnlIngreseRutGarante6 = new javax.swing.JPanel();
        txtCDPTasHist = new javax.swing.JTextField();
        btnBuscarCDPTasaHist = new javax.swing.JButton();
        pnlIngreseRutGarante7 = new javax.swing.JPanel();
        jLabel34 = new javax.swing.JLabel();
        btnBuscarCDPTasaH = new javax.swing.JButton();
        jLabel16 = new javax.swing.JLabel();
        jcDesdeTasaCdp = new com.toedter.calendar.JDateChooser();
        jcHastaTasaCdp = new com.toedter.calendar.JDateChooser();
        chkBuscarRutTasaH = new javax.swing.JCheckBox();
        chkBuscarFechCDPTasaH = new javax.swing.JCheckBox();
        jScrollPane10 = new javax.swing.JScrollPane();
        jPanel17 = new javax.swing.JPanel();
        jScrollPane11 = new javax.swing.JScrollPane();
        jTCDP = new javax.swing.JTable();
        jPanelBuscarTodasLasGarantiasCDP = new javax.swing.JPanel();
        btnBuscarTodasLasGarantiasCDP = new javax.swing.JButton();
        chkBuscarTodasLasGarantiasCDP = new javax.swing.JCheckBox();
        btnVolver = new javax.swing.JButton();
        btnTasacionHistoricaCDP = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("TASACIÓN HISTORICA");
        setResizable(false);

        jLabel4.setFont(new java.awt.Font("Century Gothic", 1, 18)); // NOI18N
        jLabel4.setText("INFORME TASACIÓN HISTÓRICA DE GARANTÍAS");

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGE/logo.JPG"))); // NOI18N

        jTabbedPane2.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N

        pnlIngreseRutGarante.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE RUT", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        btnBuscarTasaHis.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnBuscarTasaHis.setText("BUSCAR");
        btnBuscarTasaHis.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarTasaHisActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlIngreseRutGaranteLayout = new javax.swing.GroupLayout(pnlIngreseRutGarante);
        pnlIngreseRutGarante.setLayout(pnlIngreseRutGaranteLayout);
        pnlIngreseRutGaranteLayout.setHorizontalGroup(
            pnlIngreseRutGaranteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngreseRutGaranteLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlIngreseRutGaranteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtRutTasacionH)
                    .addComponent(btnBuscarTasaHis, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(19, Short.MAX_VALUE))
        );
        pnlIngreseRutGaranteLayout.setVerticalGroup(
            pnlIngreseRutGaranteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngreseRutGaranteLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(txtRutTasacionH, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnBuscarTasaHis)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pnlIngreseRutGarante1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE FECHAS", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jLabel31.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel31.setText("DESDE");

        btnBuscarFechaTasa.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnBuscarFechaTasa.setText("BUSCAR");
        btnBuscarFechaTasa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarFechaTasaActionPerformed(evt);
            }
        });

        jLabel7.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel7.setText("HASTA");

        javax.swing.GroupLayout pnlIngreseRutGarante1Layout = new javax.swing.GroupLayout(pnlIngreseRutGarante1);
        pnlIngreseRutGarante1.setLayout(pnlIngreseRutGarante1Layout);
        pnlIngreseRutGarante1Layout.setHorizontalGroup(
            pnlIngreseRutGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngreseRutGarante1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlIngreseRutGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel31)
                    .addComponent(jLabel7))
                .addGap(18, 18, 18)
                .addGroup(pnlIngreseRutGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jcDesdeTasaH, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE)
                    .addComponent(jcHastaTasaH, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnBuscarFechaTasa, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        pnlIngreseRutGarante1Layout.setVerticalGroup(
            pnlIngreseRutGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngreseRutGarante1Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlIngreseRutGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel31)
                    .addComponent(jcDesdeTasaH, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlIngreseRutGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel7)
                    .addComponent(jcHastaTasaH, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(13, 13, 13))
            .addGroup(pnlIngreseRutGarante1Layout.createSequentialGroup()
                .addGap(24, 24, 24)
                .addComponent(btnBuscarFechaTasa)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        buttonGroup1.add(chkBuscarPorRut);
        chkBuscarPorRut.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        chkBuscarPorRut.setText("BUSCAR POR RUT");
        chkBuscarPorRut.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkBuscarPorRutActionPerformed(evt);
            }
        });

        buttonGroup1.add(chkBuscarPorFechaTasa);
        chkBuscarPorFechaTasa.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        chkBuscarPorFechaTasa.setText("BUSCAR POR FECHA");
        chkBuscarPorFechaTasa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkBuscarPorFechaTasaActionPerformed(evt);
            }
        });

        jPanel8.setPreferredSize(new java.awt.Dimension(1370, 419));

        jTTasacionH.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jTTasacionH.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "N° FOLIO", "RUT", "AP. PATERNO", "AP. MATERNO", "NOMBRE", "VALOR CONTABLE", "VALOR COMERCIAL", "VALOR LIQUIDEZ", "MONTO CUBIERTO GTÍA.", "AVALÚO FISCAL", "MONTO RESIDUAL", "VALOR EN PESOS", "NOMBRE TASADOR"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false, false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jTTasacionH.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);
        jTTasacionH.getTableHeader().setResizingAllowed(false);
        jTTasacionH.getTableHeader().setReorderingAllowed(false);
        jScrollPane2.setViewportView(jTTasacionH);
        jTTasacionH.getColumnModel().getColumn(0).setPreferredWidth(70);
        jTTasacionH.getColumnModel().getColumn(1).setPreferredWidth(70);
        jTTasacionH.getColumnModel().getColumn(2).setPreferredWidth(100);
        jTTasacionH.getColumnModel().getColumn(3).setPreferredWidth(100);
        jTTasacionH.getColumnModel().getColumn(4).setPreferredWidth(100);
        jTTasacionH.getColumnModel().getColumn(5).setPreferredWidth(120);
        jTTasacionH.getColumnModel().getColumn(6).setPreferredWidth(120);
        jTTasacionH.getColumnModel().getColumn(7).setPreferredWidth(100);
        jTTasacionH.getColumnModel().getColumn(8).setPreferredWidth(150);
        jTTasacionH.getColumnModel().getColumn(9).setPreferredWidth(100);
        jTTasacionH.getColumnModel().getColumn(10).setPreferredWidth(120);
        jTTasacionH.getColumnModel().getColumn(11).setPreferredWidth(100);
        jTTasacionH.getColumnModel().getColumn(12).setPreferredWidth(120);

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()
                .addGap(0, 0, Short.MAX_VALUE)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 1414, javax.swing.GroupLayout.PREFERRED_SIZE))
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()
                .addGap(0, 0, Short.MAX_VALUE)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        jScrollPane1.setViewportView(jPanel8);

        btnVolver1.setText("VOLVER");
        btnVolver1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnVolver1ActionPerformed(evt);
            }
        });

        jPanelBuscarTodasLasGarantiashipo.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "BUSCAR TODAS LAS GARANTÍAS", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        btnBuscarTodasLasGarantiashipo.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnBuscarTodasLasGarantiashipo.setText("BUSCAR");
        btnBuscarTodasLasGarantiashipo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarTodasLasGarantiashipoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelBuscarTodasLasGarantiashipoLayout = new javax.swing.GroupLayout(jPanelBuscarTodasLasGarantiashipo);
        jPanelBuscarTodasLasGarantiashipo.setLayout(jPanelBuscarTodasLasGarantiashipoLayout);
        jPanelBuscarTodasLasGarantiashipoLayout.setHorizontalGroup(
            jPanelBuscarTodasLasGarantiashipoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelBuscarTodasLasGarantiashipoLayout.createSequentialGroup()
                .addContainerGap(65, Short.MAX_VALUE)
                .addComponent(btnBuscarTodasLasGarantiashipo)
                .addGap(41, 41, 41))
        );
        jPanelBuscarTodasLasGarantiashipoLayout.setVerticalGroup(
            jPanelBuscarTodasLasGarantiashipoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarTodasLasGarantiashipoLayout.createSequentialGroup()
                .addGap(24, 24, 24)
                .addComponent(btnBuscarTodasLasGarantiashipo)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        buttonGroup1.add(chkBuscarTodasLasGarantiashipo);
        chkBuscarTodasLasGarantiashipo.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        chkBuscarTodasLasGarantiashipo.setText("BUSCAR TODAS LAS GARANTÍAS");
        chkBuscarTodasLasGarantiashipo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkBuscarTodasLasGarantiashipoActionPerformed(evt);
            }
        });

        btnImprimirTasacionHistoricaHipo.setFont(new java.awt.Font("Century Gothic", 0, 11)); // NOI18N
        btnImprimirTasacionHistoricaHipo.setText("IMPRIMIR");
        btnImprimirTasacionHistoricaHipo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnImprimirTasacionHistoricaHipoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(btnImprimirTasacionHistoricaHipo, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(250, 250, 250)
                .addComponent(btnVolver1)
                .addContainerGap())
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(pnlIngreseRutGarante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(chkBuscarPorRut))
                        .addGap(13, 13, 13)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGap(69, 69, 69)
                                .addComponent(pnlIngreseRutGarante1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 35, Short.MAX_VALUE))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                                .addComponent(chkBuscarPorFechaTasa)
                                .addGap(148, 148, 148)))
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGap(37, 37, 37)
                                .addComponent(chkBuscarTodasLasGarantiashipo)
                                .addGap(10, 10, 10))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                                .addComponent(jPanelBuscarTodasLasGarantiashipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addContainerGap())))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
                        .addContainerGap())))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(chkBuscarPorFechaTasa)
                    .addComponent(chkBuscarPorRut)
                    .addComponent(chkBuscarTodasLasGarantiashipo))
                .addGap(18, 18, 18)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(pnlIngreseRutGarante, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pnlIngreseRutGarante1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanelBuscarTodasLasGarantiashipo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(26, 26, 26)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 286, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnVolver1)
                    .addComponent(btnImprimirTasacionHistoricaHipo))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jTabbedPane2.addTab("HIPOTECARÍA", jPanel2);

        pnlIngreseRutGarante2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE RUT", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        btnBuscarTasaH.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnBuscarTasaH.setText("BUSCAR");
        btnBuscarTasaH.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarTasaHActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlIngreseRutGarante2Layout = new javax.swing.GroupLayout(pnlIngreseRutGarante2);
        pnlIngreseRutGarante2.setLayout(pnlIngreseRutGarante2Layout);
        pnlIngreseRutGarante2Layout.setHorizontalGroup(
            pnlIngreseRutGarante2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngreseRutGarante2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlIngreseRutGarante2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtRutTasaHAuto)
                    .addComponent(btnBuscarTasaH, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(18, Short.MAX_VALUE))
        );
        pnlIngreseRutGarante2Layout.setVerticalGroup(
            pnlIngreseRutGarante2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngreseRutGarante2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(txtRutTasaHAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnBuscarTasaH)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pnlIngreseRutGarante3.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE FECHAS", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jLabel32.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel32.setText("DESDE");

        btnBuscarFechaTasaHist.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnBuscarFechaTasaHist.setText("BUSCAR");
        btnBuscarFechaTasaHist.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarFechaTasaHistActionPerformed(evt);
            }
        });

        jLabel8.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel8.setText("HASTA");

        jcDesdeTasaAuto.setDateFormatString("d-M-yyyy");

        jcHastaTasaAuto.setDateFormatString("d-M-yyyy");

        javax.swing.GroupLayout pnlIngreseRutGarante3Layout = new javax.swing.GroupLayout(pnlIngreseRutGarante3);
        pnlIngreseRutGarante3.setLayout(pnlIngreseRutGarante3Layout);
        pnlIngreseRutGarante3Layout.setHorizontalGroup(
            pnlIngreseRutGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngreseRutGarante3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlIngreseRutGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel32)
                    .addComponent(jLabel8))
                .addGap(18, 18, 18)
                .addGroup(pnlIngreseRutGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jcDesdeTasaAuto, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE)
                    .addComponent(jcHastaTasaAuto, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnBuscarFechaTasaHist, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        pnlIngreseRutGarante3Layout.setVerticalGroup(
            pnlIngreseRutGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngreseRutGarante3Layout.createSequentialGroup()
                .addGroup(pnlIngreseRutGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlIngreseRutGarante3Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(pnlIngreseRutGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel32)
                            .addComponent(jcDesdeTasaAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pnlIngreseRutGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel8)
                            .addComponent(jcHastaTasaAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(pnlIngreseRutGarante3Layout.createSequentialGroup()
                        .addGap(22, 22, 22)
                        .addComponent(btnBuscarFechaTasaHist)))
                .addContainerGap(17, Short.MAX_VALUE))
        );

        buttonGroup2.add(chkRutTasaH);
        chkRutTasaH.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        chkRutTasaH.setText("BUSCAR POR RUT");
        chkRutTasaH.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkRutTasaHActionPerformed(evt);
            }
        });

        buttonGroup2.add(chkFechaTasaH);
        chkFechaTasaH.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        chkFechaTasaH.setText("BUSCAR POR FECHA");
        chkFechaTasaH.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkFechaTasaHActionPerformed(evt);
            }
        });

        jPanel12.setPreferredSize(new java.awt.Dimension(1370, 419));

        jTAutoTasaH.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jTAutoTasaH.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "N° FOLIO", "RUT", "AP. PATERNO", "AP. MATERNO", "NOMBRE", "VALOR CONTABLE", "VALOR COMERCIAL", "VALOR LIQUIDEZ", "MONTO CUBIERTO GTÍA.", "AVALÚO FISCAL", "MONTO RESIDUAL", "VALOR EN PESOS", "NOMBRE TASADOR"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false, false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jTAutoTasaH.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);
        jTAutoTasaH.getTableHeader().setResizingAllowed(false);
        jTAutoTasaH.getTableHeader().setReorderingAllowed(false);
        jScrollPane5.setViewportView(jTAutoTasaH);
        jTAutoTasaH.getColumnModel().getColumn(0).setPreferredWidth(70);
        jTAutoTasaH.getColumnModel().getColumn(1).setPreferredWidth(70);
        jTAutoTasaH.getColumnModel().getColumn(2).setPreferredWidth(100);
        jTAutoTasaH.getColumnModel().getColumn(3).setPreferredWidth(100);
        jTAutoTasaH.getColumnModel().getColumn(4).setPreferredWidth(100);
        jTAutoTasaH.getColumnModel().getColumn(5).setPreferredWidth(120);
        jTAutoTasaH.getColumnModel().getColumn(6).setPreferredWidth(120);
        jTAutoTasaH.getColumnModel().getColumn(7).setPreferredWidth(100);
        jTAutoTasaH.getColumnModel().getColumn(8).setPreferredWidth(150);
        jTAutoTasaH.getColumnModel().getColumn(9).setPreferredWidth(100);
        jTAutoTasaH.getColumnModel().getColumn(10).setPreferredWidth(120);
        jTAutoTasaH.getColumnModel().getColumn(11).setPreferredWidth(100);
        jTAutoTasaH.getColumnModel().getColumn(12).setPreferredWidth(120);

        javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
        jPanel12.setLayout(jPanel12Layout);
        jPanel12Layout.setHorizontalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel12Layout.createSequentialGroup()
                .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 1448, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, Short.MAX_VALUE))
        );
        jPanel12Layout.setVerticalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, Short.MAX_VALUE))
        );

        jScrollPane3.setViewportView(jPanel12);

        btnVolver2.setText("VOLVER");
        btnVolver2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnVolver2ActionPerformed(evt);
            }
        });

        jPanelBuscarTodasLasGarantiasAuto.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "BUSCAR TODAS LAS GARANTÍAS", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        btnBuscarTodasLasGarantiasAuto.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnBuscarTodasLasGarantiasAuto.setText("BUSCAR");
        btnBuscarTodasLasGarantiasAuto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarTodasLasGarantiasAutoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelBuscarTodasLasGarantiasAutoLayout = new javax.swing.GroupLayout(jPanelBuscarTodasLasGarantiasAuto);
        jPanelBuscarTodasLasGarantiasAuto.setLayout(jPanelBuscarTodasLasGarantiasAutoLayout);
        jPanelBuscarTodasLasGarantiasAutoLayout.setHorizontalGroup(
            jPanelBuscarTodasLasGarantiasAutoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarTodasLasGarantiasAutoLayout.createSequentialGroup()
                .addGap(49, 49, 49)
                .addComponent(btnBuscarTodasLasGarantiasAuto, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(74, Short.MAX_VALUE))
        );
        jPanelBuscarTodasLasGarantiasAutoLayout.setVerticalGroup(
            jPanelBuscarTodasLasGarantiasAutoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarTodasLasGarantiasAutoLayout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addComponent(btnBuscarTodasLasGarantiasAuto)
                .addContainerGap(26, Short.MAX_VALUE))
        );

        buttonGroup2.add(chkBuscarTodasLasGarantiasAuto);
        chkBuscarTodasLasGarantiasAuto.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        chkBuscarTodasLasGarantiasAuto.setText("BUSCAR TODAS LAS GARANTÍAS");
        chkBuscarTodasLasGarantiasAuto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkBuscarTodasLasGarantiasAutoActionPerformed(evt);
            }
        });

        btnImprimirTasacionHistoricaAuto.setText("IMPRIMIR");
        btnImprimirTasacionHistoricaAuto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnImprimirTasacionHistoricaAutoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel11Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(pnlIngreseRutGarante2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(chkRutTasaH))
                        .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel11Layout.createSequentialGroup()
                                .addGap(49, 49, 49)
                                .addComponent(pnlIngreseRutGarante3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jPanelBuscarTodasLasGarantiasAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel11Layout.createSequentialGroup()
                                .addGap(120, 120, 120)
                                .addComponent(chkFechaTasaH)
                                .addGap(0, 0, Short.MAX_VALUE))))
                    .addGroup(jPanel11Layout.createSequentialGroup()
                        .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addGroup(jPanel11Layout.createSequentialGroup()
                                .addGap(634, 634, 634)
                                .addComponent(chkBuscarTodasLasGarantiasAuto, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel11Layout.createSequentialGroup()
                                .addGap(422, 422, 422)
                                .addComponent(btnImprimirTasacionHistoricaAuto, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(btnVolver2)
                                .addGap(54, 54, 54)))
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 836, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(chkFechaTasaH)
                    .addComponent(chkRutTasaH)
                    .addComponent(chkBuscarTodasLasGarantiasAuto))
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()
                        .addGap(3, 3, 3)
                        .addComponent(pnlIngreseRutGarante2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel11Layout.createSequentialGroup()
                        .addGap(22, 22, 22)
                        .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanelBuscarTodasLasGarantiasAuto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(pnlIngreseRutGarante3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 278, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnVolver2)
                    .addComponent(btnImprimirTasacionHistoricaAuto))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, 856, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 4, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, 484, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 15, Short.MAX_VALUE))
        );

        jTabbedPane2.addTab("AUTOMOTRIZ", jPanel3);

        pnlIngreseRutGarante4.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE RUT", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        btnRutTasaWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnRutTasaWarra.setText("BUSCAR");
        btnRutTasaWarra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnRutTasaWarraActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlIngreseRutGarante4Layout = new javax.swing.GroupLayout(pnlIngreseRutGarante4);
        pnlIngreseRutGarante4.setLayout(pnlIngreseRutGarante4Layout);
        pnlIngreseRutGarante4Layout.setHorizontalGroup(
            pnlIngreseRutGarante4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngreseRutGarante4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlIngreseRutGarante4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtRutTasaWarra)
                    .addComponent(btnRutTasaWarra, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(22, Short.MAX_VALUE))
        );
        pnlIngreseRutGarante4Layout.setVerticalGroup(
            pnlIngreseRutGarante4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngreseRutGarante4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(txtRutTasaWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnRutTasaWarra)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pnlIngreseRutGarante5.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE FECHAS", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jLabel33.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel33.setText("DESDE");

        btnBuscarWarraTasaH.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnBuscarWarraTasaH.setText("BUSCAR");
        btnBuscarWarraTasaH.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarWarraTasaHActionPerformed(evt);
            }
        });

        jLabel15.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel15.setText("HASTA");

        jcDesdeWarraTasaH.setDateFormatString("d-M-yyyy");

        jcHastaWarraaTasaH.setDateFormatString("d-M-yyyy");

        javax.swing.GroupLayout pnlIngreseRutGarante5Layout = new javax.swing.GroupLayout(pnlIngreseRutGarante5);
        pnlIngreseRutGarante5.setLayout(pnlIngreseRutGarante5Layout);
        pnlIngreseRutGarante5Layout.setHorizontalGroup(
            pnlIngreseRutGarante5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngreseRutGarante5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlIngreseRutGarante5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel33)
                    .addComponent(jLabel15))
                .addGap(18, 18, 18)
                .addGroup(pnlIngreseRutGarante5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jcDesdeWarraTasaH, javax.swing.GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE)
                    .addComponent(jcHastaWarraaTasaH, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnBuscarWarraTasaH, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        pnlIngreseRutGarante5Layout.setVerticalGroup(
            pnlIngreseRutGarante5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngreseRutGarante5Layout.createSequentialGroup()
                .addContainerGap(12, Short.MAX_VALUE)
                .addGroup(pnlIngreseRutGarante5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel33)
                    .addComponent(jcDesdeWarraTasaH, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlIngreseRutGarante5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel15)
                    .addComponent(jcHastaWarraaTasaH, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(13, 13, 13))
            .addGroup(pnlIngreseRutGarante5Layout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addComponent(btnBuscarWarraTasaH)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        buttonGroup3.add(chkBuscarRutWarraTasaH);
        chkBuscarRutWarraTasaH.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        chkBuscarRutWarraTasaH.setText("BUSCAR POR RUT");
        chkBuscarRutWarraTasaH.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkBuscarRutWarraTasaHActionPerformed(evt);
            }
        });

        buttonGroup3.add(chkFechaWarraTasaH);
        chkFechaWarraTasaH.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        chkFechaWarraTasaH.setText("BUSCAR POR FECHA");
        chkFechaWarraTasaH.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkFechaWarraTasaHActionPerformed(evt);
            }
        });

        jPanel15.setPreferredSize(new java.awt.Dimension(1370, 419));

        jTWarrantTasaHist.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jTWarrantTasaHist.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "N° FOLIO", "RUT", "AP. PATERNO", "AP. MATERNO", "NOMBRE", "VALOR CONTABLE", "VALOR COMERCIAL", "VALOR LIQUIDEZ", "MONTO CUBIERTO GTÍA.", "AVALÚO FISCAL", "MONTO RESIDUAL", "VALOR EN PESOS", "NOMBRE TASADOR"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false, false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jTWarrantTasaHist.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);
        jTWarrantTasaHist.getTableHeader().setResizingAllowed(false);
        jTWarrantTasaHist.getTableHeader().setReorderingAllowed(false);
        jScrollPane9.setViewportView(jTWarrantTasaHist);
        jTWarrantTasaHist.getColumnModel().getColumn(0).setPreferredWidth(70);
        jTWarrantTasaHist.getColumnModel().getColumn(1).setPreferredWidth(70);
        jTWarrantTasaHist.getColumnModel().getColumn(2).setPreferredWidth(100);
        jTWarrantTasaHist.getColumnModel().getColumn(3).setPreferredWidth(100);
        jTWarrantTasaHist.getColumnModel().getColumn(4).setPreferredWidth(100);
        jTWarrantTasaHist.getColumnModel().getColumn(5).setPreferredWidth(120);
        jTWarrantTasaHist.getColumnModel().getColumn(6).setPreferredWidth(120);
        jTWarrantTasaHist.getColumnModel().getColumn(7).setPreferredWidth(100);
        jTWarrantTasaHist.getColumnModel().getColumn(8).setPreferredWidth(150);
        jTWarrantTasaHist.getColumnModel().getColumn(9).setPreferredWidth(100);
        jTWarrantTasaHist.getColumnModel().getColumn(10).setPreferredWidth(120);
        jTWarrantTasaHist.getColumnModel().getColumn(11).setPreferredWidth(100);
        jTWarrantTasaHist.getColumnModel().getColumn(12).setPreferredWidth(120);

        javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);
        jPanel15.setLayout(jPanel15Layout);
        jPanel15Layout.setHorizontalGroup(
            jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel15Layout.createSequentialGroup()
                .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 1448, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, Short.MAX_VALUE))
        );
        jPanel15Layout.setVerticalGroup(
            jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel15Layout.createSequentialGroup()
                .addGap(0, 0, Short.MAX_VALUE)
                .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        jScrollPane7.setViewportView(jPanel15);

        jPanelBuscarTodasLasGarantiasWarrant.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "BUSCAR TODAS LAS GARANTÍAS", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        btnBuscarTodasLasGarantiasWarrant.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnBuscarTodasLasGarantiasWarrant.setText("BUSCAR");
        btnBuscarTodasLasGarantiasWarrant.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarTodasLasGarantiasWarrantActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelBuscarTodasLasGarantiasWarrantLayout = new javax.swing.GroupLayout(jPanelBuscarTodasLasGarantiasWarrant);
        jPanelBuscarTodasLasGarantiasWarrant.setLayout(jPanelBuscarTodasLasGarantiasWarrantLayout);
        jPanelBuscarTodasLasGarantiasWarrantLayout.setHorizontalGroup(
            jPanelBuscarTodasLasGarantiasWarrantLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelBuscarTodasLasGarantiasWarrantLayout.createSequentialGroup()
                .addContainerGap(44, Short.MAX_VALUE)
                .addComponent(btnBuscarTodasLasGarantiasWarrant)
                .addGap(47, 47, 47))
        );
        jPanelBuscarTodasLasGarantiasWarrantLayout.setVerticalGroup(
            jPanelBuscarTodasLasGarantiasWarrantLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelBuscarTodasLasGarantiasWarrantLayout.createSequentialGroup()
                .addContainerGap(23, Short.MAX_VALUE)
                .addComponent(btnBuscarTodasLasGarantiasWarrant)
                .addGap(23, 23, 23))
        );

        buttonGroup3.add(chkBuscarTodasLasGarantiasWarrant);
        chkBuscarTodasLasGarantiasWarrant.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        chkBuscarTodasLasGarantiasWarrant.setText("BUSCAR TODAS LAS GARANTÍAS");
        chkBuscarTodasLasGarantiasWarrant.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkBuscarTodasLasGarantiasWarrantActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);
        jPanel13.setLayout(jPanel13Layout);
        jPanel13Layout.setHorizontalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup()
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(pnlIngreseRutGarante4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(chkBuscarRutWarraTasaH))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 92, Short.MAX_VALUE)
                        .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup()
                                .addComponent(pnlIngreseRutGarante5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(57, 57, 57))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup()
                                .addComponent(chkFechaWarraTasaH)
                                .addGap(163, 163, 163)))
                        .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jPanelBuscarTodasLasGarantiasWarrant, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(chkBuscarTodasLasGarantiasWarrant))))
                .addContainerGap())
        );
        jPanel13Layout.setVerticalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(chkFechaWarraTasaH)
                    .addComponent(chkBuscarRutWarraTasaH)
                    .addComponent(chkBuscarTodasLasGarantiasWarrant))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanelBuscarTodasLasGarantiasWarrant, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(pnlIngreseRutGarante4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(pnlIngreseRutGarante5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 286, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        btnVolver3.setText("VOLVER");
        btnVolver3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnVolver3ActionPerformed(evt);
            }
        });

        btnImprimirTasacionHistoricaWarra.setText("IMPRIMIR");
        btnImprimirTasacionHistoricaWarra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnImprimirTasacionHistoricaWarraActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(btnImprimirTasacionHistoricaWarra, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(263, 263, 263)
                .addComponent(btnVolver3)
                .addContainerGap())
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnVolver3)
                    .addComponent(btnImprimirTasacionHistoricaWarra))
                .addContainerGap(24, Short.MAX_VALUE))
        );

        jTabbedPane2.addTab("WARRANT", jPanel4);

        pnlIngreseRutGarante6.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE RUT", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        btnBuscarCDPTasaHist.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnBuscarCDPTasaHist.setText("BUSCAR");
        btnBuscarCDPTasaHist.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarCDPTasaHistActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlIngreseRutGarante6Layout = new javax.swing.GroupLayout(pnlIngreseRutGarante6);
        pnlIngreseRutGarante6.setLayout(pnlIngreseRutGarante6Layout);
        pnlIngreseRutGarante6Layout.setHorizontalGroup(
            pnlIngreseRutGarante6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngreseRutGarante6Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlIngreseRutGarante6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtCDPTasHist)
                    .addComponent(btnBuscarCDPTasaHist, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(19, Short.MAX_VALUE))
        );
        pnlIngreseRutGarante6Layout.setVerticalGroup(
            pnlIngreseRutGarante6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngreseRutGarante6Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(txtCDPTasHist, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnBuscarCDPTasaHist)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pnlIngreseRutGarante7.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE FECHAS", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jLabel34.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel34.setText("DESDE");

        btnBuscarCDPTasaH.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnBuscarCDPTasaH.setText("BUSCAR");
        btnBuscarCDPTasaH.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarCDPTasaHActionPerformed(evt);
            }
        });

        jLabel16.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel16.setText("HASTA");

        jcDesdeTasaCdp.setDateFormatString("d-M-yyyy");

        jcHastaTasaCdp.setDateFormatString("d-M-yyyy");

        javax.swing.GroupLayout pnlIngreseRutGarante7Layout = new javax.swing.GroupLayout(pnlIngreseRutGarante7);
        pnlIngreseRutGarante7.setLayout(pnlIngreseRutGarante7Layout);
        pnlIngreseRutGarante7Layout.setHorizontalGroup(
            pnlIngreseRutGarante7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngreseRutGarante7Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlIngreseRutGarante7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel34)
                    .addComponent(jLabel16))
                .addGap(18, 18, 18)
                .addGroup(pnlIngreseRutGarante7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jcDesdeTasaCdp, javax.swing.GroupLayout.DEFAULT_SIZE, 137, Short.MAX_VALUE)
                    .addComponent(jcHastaTasaCdp, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnBuscarCDPTasaH, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        pnlIngreseRutGarante7Layout.setVerticalGroup(
            pnlIngreseRutGarante7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngreseRutGarante7Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlIngreseRutGarante7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel34, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jcDesdeTasaCdp, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pnlIngreseRutGarante7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel16)
                    .addComponent(jcHastaTasaCdp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(13, 13, 13))
            .addGroup(pnlIngreseRutGarante7Layout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addComponent(btnBuscarCDPTasaH)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        buttonGroup4.add(chkBuscarRutTasaH);
        chkBuscarRutTasaH.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        chkBuscarRutTasaH.setText("BUSCAR POR RUT");
        chkBuscarRutTasaH.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkBuscarRutTasaHActionPerformed(evt);
            }
        });

        buttonGroup4.add(chkBuscarFechCDPTasaH);
        chkBuscarFechCDPTasaH.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        chkBuscarFechCDPTasaH.setText("BUSCAR POR FECHA");
        chkBuscarFechCDPTasaH.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkBuscarFechCDPTasaHActionPerformed(evt);
            }
        });

        jPanel17.setPreferredSize(new java.awt.Dimension(1370, 419));

        jTCDP.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jTCDP.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "N° FOLIO", "RUT", "AP. PATERNO", "AP. MATERNO", "NOMBRE", "VALOR CONTABLE", "VALOR COMERCIAL", "VALOR LIQUIDEZ", "MONTO CUBIERTO GTÍA.", "AVALÚO FISCAL", "MONTO RESIDUAL", "VALOR EN PESOS", "NOMBRE TASADOR"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false, false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jTCDP.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);
        jTCDP.getTableHeader().setResizingAllowed(false);
        jTCDP.getTableHeader().setReorderingAllowed(false);
        jScrollPane11.setViewportView(jTCDP);
        jTCDP.getColumnModel().getColumn(0).setPreferredWidth(70);
        jTCDP.getColumnModel().getColumn(1).setPreferredWidth(70);
        jTCDP.getColumnModel().getColumn(2).setPreferredWidth(100);
        jTCDP.getColumnModel().getColumn(3).setPreferredWidth(100);
        jTCDP.getColumnModel().getColumn(4).setPreferredWidth(100);
        jTCDP.getColumnModel().getColumn(5).setPreferredWidth(120);
        jTCDP.getColumnModel().getColumn(6).setPreferredWidth(120);
        jTCDP.getColumnModel().getColumn(7).setPreferredWidth(100);
        jTCDP.getColumnModel().getColumn(8).setPreferredWidth(150);
        jTCDP.getColumnModel().getColumn(9).setPreferredWidth(100);
        jTCDP.getColumnModel().getColumn(10).setPreferredWidth(120);
        jTCDP.getColumnModel().getColumn(11).setPreferredWidth(100);
        jTCDP.getColumnModel().getColumn(12).setPreferredWidth(120);

        javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);
        jPanel17.setLayout(jPanel17Layout);
        jPanel17Layout.setHorizontalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addGap(0, 0, 0)
                .addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, 1438, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel17Layout.setVerticalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel17Layout.createSequentialGroup()
                .addGap(0, 0, Short.MAX_VALUE)
                .addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        jScrollPane10.setViewportView(jPanel17);

        jPanelBuscarTodasLasGarantiasCDP.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "BUSCAR TODAS LAS GARANTÍAS", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        btnBuscarTodasLasGarantiasCDP.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnBuscarTodasLasGarantiasCDP.setText("BUSCAR");
        btnBuscarTodasLasGarantiasCDP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarTodasLasGarantiasCDPActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelBuscarTodasLasGarantiasCDPLayout = new javax.swing.GroupLayout(jPanelBuscarTodasLasGarantiasCDP);
        jPanelBuscarTodasLasGarantiasCDP.setLayout(jPanelBuscarTodasLasGarantiasCDPLayout);
        jPanelBuscarTodasLasGarantiasCDPLayout.setHorizontalGroup(
            jPanelBuscarTodasLasGarantiasCDPLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarTodasLasGarantiasCDPLayout.createSequentialGroup()
                .addGap(62, 62, 62)
                .addComponent(btnBuscarTodasLasGarantiasCDP, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(36, Short.MAX_VALUE))
        );
        jPanelBuscarTodasLasGarantiasCDPLayout.setVerticalGroup(
            jPanelBuscarTodasLasGarantiasCDPLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarTodasLasGarantiasCDPLayout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addComponent(btnBuscarTodasLasGarantiasCDP)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        buttonGroup4.add(chkBuscarTodasLasGarantiasCDP);
        chkBuscarTodasLasGarantiasCDP.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        chkBuscarTodasLasGarantiasCDP.setText("BUSCAR TODAS LAS GARANTÍAS");
        chkBuscarTodasLasGarantiasCDP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkBuscarTodasLasGarantiasCDPActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);
        jPanel16.setLayout(jPanel16Layout);
        jPanel16Layout.setHorizontalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel16Layout.createSequentialGroup()
                        .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel16Layout.createSequentialGroup()
                                .addComponent(chkBuscarRutTasaH, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(167, 167, 167)
                                .addComponent(chkBuscarFechCDPTasaH, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGroup(jPanel16Layout.createSequentialGroup()
                                .addComponent(pnlIngreseRutGarante6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 92, Short.MAX_VALUE)
                                .addComponent(pnlIngreseRutGarante7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(65, 65, 65)))
                        .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanelBuscarTodasLasGarantiasCDP, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(chkBuscarTodasLasGarantiasCDP, javax.swing.GroupLayout.Alignment.TRAILING)))
                    .addComponent(jScrollPane10, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel16Layout.setVerticalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(chkBuscarTodasLasGarantiasCDP)
                        .addComponent(chkBuscarFechCDPTasaH))
                    .addComponent(chkBuscarRutTasaH, javax.swing.GroupLayout.Alignment.TRAILING))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 16, Short.MAX_VALUE)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(pnlIngreseRutGarante7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pnlIngreseRutGarante6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanelBuscarTodasLasGarantiasCDP, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 263, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(6, 6, 6))
        );

        btnVolver.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnVolver.setText("VOLVER");
        btnVolver.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnVolverActionPerformed(evt);
            }
        });

        btnTasacionHistoricaCDP.setText("IMPRIMIR");
        btnTasacionHistoricaCDP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnTasacionHistoricaCDPActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(btnTasacionHistoricaCDP, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(230, 230, 230)
                .addComponent(btnVolver)
                .addContainerGap())
            .addComponent(jPanel16, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnVolver)
                    .addComponent(btnTasacionHistoricaCDP))
                .addContainerGap(30, Short.MAX_VALUE))
        );

        jTabbedPane2.addTab("CDP", jPanel9);

        jLabel1.setText("MENÚ PRINCIPAL\\INFORME TASACIÓN HISTÓRICA DE GARANTÍAS");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel2)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(111, 111, 111)
                        .addComponent(jLabel4))
                    .addGroup(layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel1)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addComponent(jTabbedPane2)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel4)
                    .addComponent(jLabel2)
                    .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING))
                .addGap(18, 18, 18)
                .addComponent(jTabbedPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        setSize(new java.awt.Dimension(881, 669));
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents

    
    private void btnBuscarTasaHisActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarTasaHisActionPerformed
         jcDesdeTasaH.setCalendar(null);
         jcHastaTasaH.setCalendar(null);
         try
         {
             if(ValidarRutDAO.validarRut(this.txtRutTasacionH.getText().toUpperCase()))
           {
          javax.swing.JOptionPane.showMessageDialog(this, "Rut valido");
        if(txtRutTasacionH.equals(""))
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Rut valido");
            txtRutTasacionH.setText(null);
            modelo = (DefaultTableModel)this.jTTasacionH.getModel();
           modelo.setNumRows(0);
        }
        else{
           String rut =txtRutTasacionH.getText().toString().trim();  
        ArrayList<tasacionGarantiaHipoDTO> lista = garaHipo.ListarTasacionPorRutHipo(rut);
       
        if(lista.isEmpty()){
           javax.swing.JOptionPane.showMessageDialog(this, "No hay garantias registradas!");
           modelo = (DefaultTableModel)this.jTTasacionH.getModel();
           modelo.setNumRows(0);
        } else{
           modelo = (DefaultTableModel)this.jTTasacionH.getModel();
           modelo.setNumRows(0);
           for(tasacionGarantiaHipoDTO x: lista)
           {
               aux = null;
               Object[]arr={
                   x.getHipo().getFolio_garantia_hipo(),
                   x.getHipo().getRut_gara_hipo(),
                   x.getHipo().getApell_paterno_hipo(),
                   x.getHipo().getApell_materno_hipo(),
                   x.getHipo().getNombre_hipo(),
                   x.getValor_contable_tasa(),
                   x.getValor_comercial_tasa(),
                   x.getValor_liquidez_tasa(),
                   x.getMonto_cubierto_gara_tasa(),
                   x.getAvaluo_fiscal_tasa(),
                   x.getMonto_residual_tasa(),
                   x.getValor_pesos_tasa(),
                   x.getNombre_tasador(),
                   x.getHipo().getFech_extincion_hipo()
                };
               aux = arr;
               modelo.addRow(aux);
                }
            }
        }}else
             {
                 javax.swing.JOptionPane.showMessageDialog(this, "Rut invalido");
             }}
         catch(Exception e)
         {
             e.getMessage();
         }
    }//GEN-LAST:event_btnBuscarTasaHisActionPerformed

    private void btnBuscarFechaTasaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarFechaTasaActionPerformed
        txtRutTasacionH.setText(null);
        try
        {
        String desde = (new SimpleDateFormat("dd/MM/yyyy").format(this.jcDesdeTasaH.getDate()));
        String hasta = (new SimpleDateFormat("dd/MM/yyyy").format(this.jcHastaTasaH.getDate()));
        
        if(desde.equals("") || hasta.equals(""))
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Fechas validas");
        }
        else if(desde.equals("") && hasta.equals(""))
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Fechas validas");
        }
        else{
            ArrayList<tasacionGarantiaHipoDTO> lista = garaHipo.ListarTasaPorFechaHipo(new Date(this.jcDesdeTasaH.getDate().getTime()), new Date(this.jcHastaTasaH.getDate().getTime()));
       
        if(lista.isEmpty()){
           javax.swing.JOptionPane.showMessageDialog(this, "No hay garantias registradas!");
            modelo = (DefaultTableModel)this.jTTasacionH.getModel();
           modelo.setNumRows(0);
        }else{
           modelo = (DefaultTableModel)this.jTTasacionH.getModel();
           modelo.setNumRows(0);
           for(tasacionGarantiaHipoDTO x: lista)
           {
               aux = null;
               Object[]arr={
                   x.getHipo().getFolio_garantia_hipo(),
                   x.getHipo().getRut_gara_hipo(),
                   x.getHipo().getApell_paterno_hipo(),
                   x.getHipo().getApell_materno_hipo(),
                   x.getHipo().getNombre_hipo(),
                   x.getValor_contable_tasa(),
                   x.getValor_comercial_tasa(),
                   x.getValor_liquidez_tasa(),
                   x.getMonto_cubierto_gara_tasa(),
                   x.getAvaluo_fiscal_tasa(),
                   x.getMonto_residual_tasa(),
                   x.getValor_pesos_tasa(),
                   x.getNombre_tasador(),
                   x.getHipo().getFech_extincion_hipo()
                };
               aux = arr;
               modelo.addRow(aux);
                }
            }
        }}
        catch(Exception e)
        {
            e.getMessage();
        }
    }//GEN-LAST:event_btnBuscarFechaTasaActionPerformed

    private void btnBuscarTasaHActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarTasaHActionPerformed
      jcDesdeTasaAuto.setCalendar(null);
      jcHastaTasaAuto.setCalendar(null);
      try{
          if(ValidarRutDAO.validarRut(this.txtRutTasaHAuto.getText().toUpperCase()))
           {
          javax.swing.JOptionPane.showMessageDialog(this, "Rut valido");
        if(txtRutTasaHAuto.equals(""))
        {
            txtRutTasaHAuto.setText(null);
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Rut valido");
             modelo = (DefaultTableModel)this.jTAutoTasaH.getModel();
           modelo.setNumRows(0);
        }
        else{
           String rut =txtRutTasaHAuto.getText().toString().trim();  
        ArrayList<tasacionGarantiaAutoDTO> lista = garaAuto.ListarTasacionPorRutAuto(rut);
       
        if(lista.isEmpty()){
           javax.swing.JOptionPane.showMessageDialog(this, "No hay garantias registradas!");
           modelo = (DefaultTableModel)this.jTAutoTasaH.getModel();
           modelo.setNumRows(0);
        } else{
           modelo = (DefaultTableModel)this.jTAutoTasaH.getModel();
           modelo.setNumRows(0);
           for(tasacionGarantiaAutoDTO x: lista)
           {
               aux = null;
               Object[]arr={
                   x.getAuto().getFolio_garantia_auto(),
                   x.getAuto().getRut_gara_auto(),
                   x.getAuto().getApell_paterno_auto(),
                   x.getAuto().getApell_materno_auto(),
                   x.getAuto().getNombre_auto(),
                   x.getValor_contable_tasa(),
                   x.getValor_comercial_tasa(),
                   x.getValor_liquidez_tasa(),
                   x.getMonto_cubierto_gara_tasa(),
                   x.getAvaluo_fiscal_tasa(),
                   x.getMonto_residual_tasa(),
                   x.getValor_pesos_tasa(),
                   x.getNombre_tasador(),
                   x.getAuto().getFech_extincion_auto()
                };
               aux = arr;
               modelo.addRow(aux);
                }
            }
        } }else
    {
        javax.swing.JOptionPane.showMessageDialog(this, "Rut invalido");
    }}
      catch(Exception e)
      {
          e.getMessage();
      }
    }//GEN-LAST:event_btnBuscarTasaHActionPerformed

    private void btnBuscarFechaTasaHistActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarFechaTasaHistActionPerformed
        txtRutTasaHAuto.setText(null);
        try
        {
        String desde = (new SimpleDateFormat("d/M/yyyy").format(this.jcDesdeTasaAuto.getDate()));
        String hasta = (new SimpleDateFormat("d/M/yyyy").format(this.jcHastaTasaAuto.getDate()));
       
        if(desde.equals("") || hasta.equals(""))
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Fechas validas");
        }
        else if(desde.equals("") && hasta.equals(""))
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Fechas validas");
        }
        else{
            ArrayList<tasacionGarantiaAutoDTO> lista = garaAuto.ListarTasaPorFechaAuto(desde, hasta);
       
        if(lista.isEmpty()){
           javax.swing.JOptionPane.showMessageDialog(this, "No hay garantias registradas!");
            modelo = (DefaultTableModel)this.jTAutoTasaH.getModel();
           modelo.setNumRows(0);
        }else{
           modelo = (DefaultTableModel)this.jTAutoTasaH.getModel();
           modelo.setNumRows(0);
           for(tasacionGarantiaAutoDTO x: lista)
           {
               aux = null;
               Object[]arr={
                   x.getAuto().getFolio_garantia_auto(),
                   x.getAuto().getRut_gara_auto(),
                   x.getAuto().getApell_paterno_auto(),
                   x.getAuto().getApell_materno_auto(),
                   x.getAuto().getNombre_auto(),
                   x.getValor_contable_tasa(),
                   x.getValor_comercial_tasa(),
                   x.getValor_liquidez_tasa(),
                   x.getMonto_cubierto_gara_tasa(),
                   x.getAvaluo_fiscal_tasa(),
                   x.getMonto_residual_tasa(),
                   x.getValor_pesos_tasa(),
                   x.getNombre_tasador(),
                   x.getAuto().getFech_extincion_auto()
                };
               aux = arr;
               modelo.addRow(aux);
                }
            }
        }}catch(Exception e)
        {
            e.getMessage();
        }
    }//GEN-LAST:event_btnBuscarFechaTasaHistActionPerformed

    private void btnRutTasaWarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRutTasaWarraActionPerformed
        jcDesdeWarraTasaH.setCalendar(null);
        jcHastaWarraaTasaH.setCalendar(null);
        try
        {
            if(ValidarRutDAO.validarRut(this.txtRutTasaWarra.getText().toUpperCase()))
           {
          javax.swing.JOptionPane.showMessageDialog(this, "Rut valido");
        if(txtRutTasaWarra.equals(""))
        {
            txtRutTasaWarra.setText(null);
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Rut valido");
            modelo = (DefaultTableModel)this.jTWarrantTasaHist.getModel();
           modelo.setNumRows(0);
        }
        else{
           String rut =txtRutTasaWarra.getText().toString().trim();  
        ArrayList<tasacionGarantiaWarraDTO> lista = garaWarra.ListarTasacionPorRutWarra(rut);
       
        if(lista.isEmpty()){
           javax.swing.JOptionPane.showMessageDialog(this, "No hay garantias registradas!");
           modelo = (DefaultTableModel)this.jTWarrantTasaHist.getModel();
           modelo.setNumRows(0);
        } else{
           modelo = (DefaultTableModel)this.jTWarrantTasaHist.getModel();
           modelo.setNumRows(0);
           for(tasacionGarantiaWarraDTO x: lista)
           {
               aux = null;
               Object[]arr={
                   x.getWarra().getFolio_warra(),
                   x.getWarra().getRut_garante_warra(),
                   x.getWarra().getApell_paterno_warra(),
                   x.getWarra().getApell_materno_warra(),
                   x.getWarra().getNombre_warra(),
                   x.getValor_contable_tasa(),
                   x.getValor_comercial_tasa(),
                   x.getValor_liquidez_tasa(),
                   x.getMonto_cubierto_gara_tasa(),
                   x.getAvaluo_fiscal_tasa(),
                   x.getMonto_residual_tasa(),
                   x.getValor_pesos_tasa(),
                   x.getNombre_tasador(),
                   x.getWarra().getFech_exti_warra()
                };
               aux = arr;
               modelo.addRow(aux);
                }
            }
        } }else
    {
        javax.swing.JOptionPane.showMessageDialog(this, "Rut invalido");
    }}catch(Exception e)
        {
            e.getMessage();
        }
    }//GEN-LAST:event_btnRutTasaWarraActionPerformed

    private void btnBuscarWarraTasaHActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarWarraTasaHActionPerformed
       txtRutTasaWarra.setText(null);
       try
       {
        String desde = (new SimpleDateFormat("d/M/yyyy").format(this.jcDesdeWarraTasaH.getDate()));
        String hasta = (new SimpleDateFormat("d/M/yyyy").format(this.jcHastaWarraaTasaH.getDate()));
        
        if(desde.equals("") || hasta.equals(""))
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Fechas validas");
        }
        else if(desde.equals("") && hasta.equals(""))
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Fechas validas");
        }
        else{
            ArrayList<tasacionGarantiaWarraDTO> lista = garaWarra.ListarTasaPorFechaWarra(desde, hasta);
       
        if(lista.isEmpty()){
           javax.swing.JOptionPane.showMessageDialog(this, "No hay garantias registradas!");
            modelo = (DefaultTableModel)this.jTWarrantTasaHist.getModel();
           modelo.setNumRows(0);
        }else{
           modelo = (DefaultTableModel)this.jTWarrantTasaHist.getModel();
           modelo.setNumRows(0);
           for(tasacionGarantiaWarraDTO x: lista)
           {
               aux = null;
               Object[]arr={
                   x.getWarra().getFolio_warra(),
                   x.getWarra().getRut_garante_warra(),
                   x.getWarra().getApell_paterno_warra(),
                   x.getWarra().getApell_materno_warra(),
                   x.getWarra().getNombre_warra(),
                   x.getValor_contable_tasa(),
                   x.getValor_comercial_tasa(),
                   x.getValor_liquidez_tasa(),
                   x.getMonto_cubierto_gara_tasa(),
                   x.getAvaluo_fiscal_tasa(),
                   x.getMonto_residual_tasa(),
                   x.getValor_pesos_tasa(),
                   x.getNombre_tasador(),
                   x.getWarra().getFech_exti_warra()
                };
               aux = arr;
               modelo.addRow(aux);
                }
            }
        }}catch(Exception e)
        {
            e.getMessage();
        }
    }//GEN-LAST:event_btnBuscarWarraTasaHActionPerformed

    private void btnBuscarCDPTasaHistActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarCDPTasaHistActionPerformed
        jcDesdeTasaCdp.setCalendar(null);
        jcHastaTasaCdp.setCalendar(null);
        try
        {
            if(ValidarRutDAO.validarRut(this.txtCDPTasHist.getText().toUpperCase()))
           {
          javax.swing.JOptionPane.showMessageDialog(this, "Rut valido");
        if(txtCDPTasHist.equals(""))
        {
            txtCDPTasHist.setText(null);
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Rut valido");
            modelo = (DefaultTableModel)this.jTCDP.getModel();
           modelo.setNumRows(0);
        }
        else{
           String rut =txtCDPTasHist.getText().toString().trim();  
        ArrayList<tasacionGarantiaCdpDTO> lista = garaCdp.ListarTasacionPorRutCdp(rut);
       
        if(lista.isEmpty()){
           javax.swing.JOptionPane.showMessageDialog(this, "No hay garantias registradas!");
           modelo = (DefaultTableModel)this.jTCDP.getModel();
           modelo.setNumRows(0);
        } else{
           modelo = (DefaultTableModel)this.jTCDP.getModel();
           modelo.setNumRows(0);
           for(tasacionGarantiaCdpDTO x: lista)
           {
               aux = null;
               Object[]arr={
                   x.getCdp().getFolio_cdp(),
                   x.getCdp().getRut_gara_cdp(),
                   x.getCdp().getApell_paterno_cdp(),
                   x.getCdp().getApell_materno_cdp(),
                   x.getCdp().getNombre_cdp(),
                   x.getValor_contable_tasa(),
                   x.getValor_comercial_tasa(),
                   x.getValor_liquidez_tasa(),
                   x.getMonto_cubierto_gara_tasa(),
                   x.getAvaluo_fiscal_tasa(),
                   x.getMonto_residual_tasa(),
                   x.getValor_pesos_tasa(),
                   x.getNombre_tasador(),
                   x.getCdp().getFech_extin_cdp()
                };
               aux = arr;
               modelo.addRow(aux);
                }
        }
        }}else
    {
        javax.swing.JOptionPane.showMessageDialog(this, "Rut invalido");
    }}catch(Exception e)
        {
            e.getMessage();
        }
    }//GEN-LAST:event_btnBuscarCDPTasaHistActionPerformed

    private void btnBuscarCDPTasaHActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarCDPTasaHActionPerformed
       txtCDPTasHist.setText(null);
       try
       {
        String desde = (new SimpleDateFormat("d/M/yyyy").format(this.jcDesdeTasaCdp.getDate()));
        String hasta = (new SimpleDateFormat("d/M/yyyy").format(this.jcHastaTasaCdp.getDate()));
        
        if(desde.equals("") || hasta.equals(""))
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Fechas validas");
        }
        else if(desde.equals("") && hasta.equals(""))
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese Fechas validas");
        }
        else{
            ArrayList<tasacionGarantiaCdpDTO> lista = garaCdp.ListarTasaPorFechaCdp(desde, hasta);
       
        if(lista.isEmpty()){
           javax.swing.JOptionPane.showMessageDialog(this, "No hay garantias registradas!");
            modelo = (DefaultTableModel)this.jTCDP.getModel();
           modelo.setNumRows(0);
        }else{
           modelo = (DefaultTableModel)this.jTCDP.getModel();
           modelo.setNumRows(0);
           for(tasacionGarantiaCdpDTO x: lista)
           {
               aux = null;
               Object[]arr={
                   x.getCdp().getFolio_cdp(),
                   x.getCdp().getRut_gara_cdp(),
                   x.getCdp().getApell_paterno_cdp(),
                   x.getCdp().getApell_materno_cdp(),
                   x.getCdp().getNombre_cdp(),
                   x.getValor_contable_tasa(),
                   x.getValor_comercial_tasa(),
                   x.getValor_liquidez_tasa(),
                   x.getMonto_cubierto_gara_tasa(),
                   x.getAvaluo_fiscal_tasa(),
                   x.getMonto_residual_tasa(),
                   x.getValor_pesos_tasa(),
                   x.getNombre_tasador(),
                   x.getCdp().getFech_extin_cdp()
                };
               aux = arr;
               modelo.addRow(aux);
                }
            }
        }}catch(Exception e)
        {
            e.getMessage();
        }
    }//GEN-LAST:event_btnBuscarCDPTasaHActionPerformed

    private void btnVolverActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnVolverActionPerformed
        MenuPrincipal menuPrincipal = new MenuPrincipal(user);
        menuPrincipal.setVisible(true);
        FormularioTasacionHistorica.this.dispose();
    }//GEN-LAST:event_btnVolverActionPerformed

    private void btnVolver1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnVolver1ActionPerformed
        MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
        venMenuPrincipal.setVisible(true);
        FormularioTasacionHistorica.this.dispose();
    }//GEN-LAST:event_btnVolver1ActionPerformed

    private void btnVolver2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnVolver2ActionPerformed
        MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
        venMenuPrincipal.setVisible(true);
        FormularioTasacionHistorica.this.dispose();
    }//GEN-LAST:event_btnVolver2ActionPerformed

    private void btnVolver3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnVolver3ActionPerformed
        MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
        venMenuPrincipal.setVisible(true);
        FormularioTasacionHistorica.this.dispose();
    }//GEN-LAST:event_btnVolver3ActionPerformed

    private void chkBuscarPorRutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkBuscarPorRutActionPerformed
        if(chkBuscarPorRut.isSelected())
        {
            pnlIngreseRutGarante.setVisible(true);
            pnlIngreseRutGarante1.setVisible(false);
            jPanelBuscarTodasLasGarantiashipo.setVisible(false);
        }
    }//GEN-LAST:event_chkBuscarPorRutActionPerformed

    private void chkBuscarPorFechaTasaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkBuscarPorFechaTasaActionPerformed
        if(chkBuscarPorFechaTasa.isSelected())
        {
            pnlIngreseRutGarante.setVisible(false);
            jPanelBuscarTodasLasGarantiashipo.setVisible(false);
            pnlIngreseRutGarante1.setVisible(true);
        }
    }//GEN-LAST:event_chkBuscarPorFechaTasaActionPerformed

    private void chkRutTasaHActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkRutTasaHActionPerformed
       if(chkRutTasaH.isSelected())
       {
           pnlIngreseRutGarante2.setVisible(true);
           pnlIngreseRutGarante3.setVisible(false);
           jPanelBuscarTodasLasGarantiasAuto.setVisible(false);
       }
    }//GEN-LAST:event_chkRutTasaHActionPerformed

    private void chkFechaTasaHActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkFechaTasaHActionPerformed
        if(chkFechaTasaH.isSelected())
        {
            jPanelBuscarTodasLasGarantiasAuto.setVisible(false);
           pnlIngreseRutGarante2.setVisible(false);
           pnlIngreseRutGarante3.setVisible(true);
        }
    }//GEN-LAST:event_chkFechaTasaHActionPerformed

    private void chkBuscarRutWarraTasaHActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkBuscarRutWarraTasaHActionPerformed
        if(chkBuscarRutWarraTasaH.isSelected())
        {
            pnlIngreseRutGarante4.setVisible(true);
            pnlIngreseRutGarante5.setVisible(false);
            jPanelBuscarTodasLasGarantiasWarrant.setVisible(false);
        }
    }//GEN-LAST:event_chkBuscarRutWarraTasaHActionPerformed

    private void chkFechaWarraTasaHActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkFechaWarraTasaHActionPerformed
        if(chkFechaWarraTasaH.isSelected())
        {
            pnlIngreseRutGarante4.setVisible(false);
            jPanelBuscarTodasLasGarantiasWarrant.setVisible(false);
            pnlIngreseRutGarante5.setVisible(true);
        }
    }//GEN-LAST:event_chkFechaWarraTasaHActionPerformed

    private void chkBuscarRutTasaHActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkBuscarRutTasaHActionPerformed
        if(chkBuscarRutTasaH.isSelected())
        {
            pnlIngreseRutGarante6.setVisible(true);
            pnlIngreseRutGarante7.setVisible(false);
            jPanelBuscarTodasLasGarantiasCDP.setVisible(false);
        }
    }//GEN-LAST:event_chkBuscarRutTasaHActionPerformed

    private void chkBuscarFechCDPTasaHActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkBuscarFechCDPTasaHActionPerformed
        if(chkBuscarFechCDPTasaH.isSelected())
        {
            pnlIngreseRutGarante6.setVisible(false);
            jPanelBuscarTodasLasGarantiasCDP.setVisible(false);
            pnlIngreseRutGarante7.setVisible(true);
        }
    }//GEN-LAST:event_chkBuscarFechCDPTasaHActionPerformed

    private void chkBuscarTodasLasGarantiashipoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkBuscarTodasLasGarantiashipoActionPerformed
        if(chkBuscarTodasLasGarantiashipo.isSelected())
        {
            jPanelBuscarTodasLasGarantiashipo.setVisible(true);
            pnlIngreseRutGarante1.setVisible(false);
            pnlIngreseRutGarante.setVisible(false);
        }
    }//GEN-LAST:event_chkBuscarTodasLasGarantiashipoActionPerformed

    private void chkBuscarTodasLasGarantiasAutoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkBuscarTodasLasGarantiasAutoActionPerformed
        if(chkBuscarTodasLasGarantiasAuto.isSelected())
        {
            jPanelBuscarTodasLasGarantiasAuto.setVisible(true);
            pnlIngreseRutGarante3.setVisible(false);
            pnlIngreseRutGarante2.setVisible(false);
        }
    }//GEN-LAST:event_chkBuscarTodasLasGarantiasAutoActionPerformed

    private void btnBuscarTodasLasGarantiasAutoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarTodasLasGarantiasAutoActionPerformed
       jcDesdeTasaAuto.setCalendar(null);
       jcHastaTasaAuto.setCalendar(null);
       txtRutTasaHAuto.setText(null);
       
        ArrayList<tasacionGarantiaAutoDTO> lista = garaAuto.ListarTodoInformeGarantiasAuto();
       
        if(lista.isEmpty()){
           javax.swing.JOptionPane.showMessageDialog(this, "No hay garantias registradas!");
            modelo = (DefaultTableModel)this.jTAutoTasaH.getModel();
           modelo.setNumRows(0);
           jcDesdeTasaAuto.setCalendar(null);
       jcHastaTasaAuto.setCalendar(null);
       txtRutTasaHAuto.setText(null);
        }else{
           modelo = (DefaultTableModel)this.jTAutoTasaH.getModel();
           modelo.setNumRows(0);
           for(tasacionGarantiaAutoDTO x: lista)
           {
               aux = null;
               Object[]arr={
                   x.getAuto().getFolio_garantia_auto(),
                   x.getAuto().getRut_gara_auto(),
                   x.getAuto().getApell_paterno_auto(),
                   x.getAuto().getApell_materno_auto(),
                   x.getAuto().getNombre_auto(),
                   x.getValor_contable_tasa(),
                   x.getValor_comercial_tasa(),
                   x.getValor_liquidez_tasa(),
                   x.getMonto_cubierto_gara_tasa(),
                   x.getAvaluo_fiscal_tasa(),
                   x.getMonto_residual_tasa(),
                   x.getValor_pesos_tasa(),
                   x.getNombre_tasador(),
                   x.getAuto().getFech_extincion_auto()
                };
               aux = arr;
               modelo.addRow(aux);
                }
            }
    }//GEN-LAST:event_btnBuscarTodasLasGarantiasAutoActionPerformed

    private void btnBuscarTodasLasGarantiashipoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarTodasLasGarantiashipoActionPerformed
        txtRutTasacionH.setText(null);
        jcDesdeTasaH.setCalendar(null);
        jcHastaTasaH.setCalendar(null);
        
        ArrayList<tasacionGarantiaHipoDTO> lista = garaHipo.ListarTodoInformeGarantiasHipo();
       
        if(lista.isEmpty()){
           javax.swing.JOptionPane.showMessageDialog(this, "No hay garantias registradas!");
            modelo = (DefaultTableModel)this.jTTasacionH.getModel();
           modelo.setNumRows(0);
        }else{
           modelo = (DefaultTableModel)this.jTTasacionH.getModel();
           modelo.setNumRows(0);
           for(tasacionGarantiaHipoDTO x: lista)
           {
               aux = null;
               Object[]arr={
                   x.getHipo().getFolio_garantia_hipo(),
                   x.getHipo().getRut_gara_hipo(),
                   x.getHipo().getApell_paterno_hipo(),
                   x.getHipo().getApell_materno_hipo(),
                   x.getHipo().getNombre_hipo(),
                   x.getValor_contable_tasa(),
                   x.getValor_comercial_tasa(),
                   x.getValor_liquidez_tasa(),
                   x.getMonto_cubierto_gara_tasa(),
                   x.getAvaluo_fiscal_tasa(),
                   x.getMonto_residual_tasa(),
                   x.getValor_pesos_tasa(),
                   x.getNombre_tasador(),
                   x.getHipo().getFech_extincion_hipo()
                };
               aux = arr;
               modelo.addRow(aux);
                }
            }        
    }//GEN-LAST:event_btnBuscarTodasLasGarantiashipoActionPerformed

    private void chkBuscarTodasLasGarantiasWarrantActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkBuscarTodasLasGarantiasWarrantActionPerformed
        if(chkBuscarTodasLasGarantiasWarrant.isSelected())
        {
            jPanelBuscarTodasLasGarantiasWarrant.setVisible(true);
            pnlIngreseRutGarante5.setVisible(false);
            pnlIngreseRutGarante4.setVisible(false);
        }
    }//GEN-LAST:event_chkBuscarTodasLasGarantiasWarrantActionPerformed

    private void btnBuscarTodasLasGarantiasWarrantActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarTodasLasGarantiasWarrantActionPerformed
        txtRutTasaWarra.setText(null);
        jcDesdeWarraTasaH.setCalendar(null);
        jcHastaWarraaTasaH.setCalendar(null);
        
        ArrayList<tasacionGarantiaWarraDTO> lista = garaWarra.ListarInformeGarantiaWarra();
       
        if(lista.isEmpty()){
           javax.swing.JOptionPane.showMessageDialog(this, "No hay garantias registradas!");
            modelo = (DefaultTableModel)this.jTWarrantTasaHist.getModel();
           modelo.setNumRows(0);
           txtRutTasaWarra.setText(null);
        jcDesdeWarraTasaH.setCalendar(null);
        jcHastaWarraaTasaH.setCalendar(null);
        }else{
           modelo = (DefaultTableModel)this.jTWarrantTasaHist.getModel();
           modelo.setNumRows(0);
           
           for(tasacionGarantiaWarraDTO x: lista)
           {
               aux = null;
               Object[]arr={
                   x.getWarra().getFolio_warra(),
                   x.getWarra().getRut_garante_warra(),
                   x.getWarra().getApell_paterno_warra(),
                   x.getWarra().getApell_materno_warra(),
                   x.getWarra().getNombre_warra(),
                   x.getValor_contable_tasa(),
                   x.getValor_comercial_tasa(),
                   x.getValor_liquidez_tasa(),
                   x.getMonto_cubierto_gara_tasa(),
                   x.getAvaluo_fiscal_tasa(),
                   x.getMonto_residual_tasa(),
                   x.getValor_pesos_tasa(),
                   x.getNombre_tasador(),
                   x.getWarra().getFech_exti_warra()
                };
               aux = arr;
               modelo.addRow(aux);
                }
            }
    }//GEN-LAST:event_btnBuscarTodasLasGarantiasWarrantActionPerformed

    private void chkBuscarTodasLasGarantiasCDPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkBuscarTodasLasGarantiasCDPActionPerformed
        if(chkBuscarTodasLasGarantiasCDP.isSelected())
        {
            jPanelBuscarTodasLasGarantiasCDP.setVisible(true);
            pnlIngreseRutGarante7.setVisible(false);
            pnlIngreseRutGarante6.setVisible(false);
        }
    }//GEN-LAST:event_chkBuscarTodasLasGarantiasCDPActionPerformed

    private void btnBuscarTodasLasGarantiasCDPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarTodasLasGarantiasCDPActionPerformed
           txtCDPTasHist.setText(null);
           jcDesdeTasaCdp.setCalendar(null);
           jcHastaTasaCdp.setCalendar(null);
        
        ArrayList<tasacionGarantiaCdpDTO> lista = garaCdp.ListarInformeGarantiaCdp();
       
        if(lista.isEmpty()){
           javax.swing.JOptionPane.showMessageDialog(this, "No hay garantias registradas!");
            modelo = (DefaultTableModel)this.jTCDP.getModel();
           modelo.setNumRows(0);
           txtCDPTasHist.setText(null);
           jcDesdeTasaCdp.setCalendar(null);
           jcHastaTasaCdp.setCalendar(null);
        }else{
           modelo = (DefaultTableModel)this.jTCDP.getModel();
           modelo.setNumRows(0);
           for(tasacionGarantiaCdpDTO x: lista)
           {
               aux = null;
               Object[]arr={
                   x.getCdp().getFolio_cdp(),
                   x.getCdp().getRut_gara_cdp(),
                   x.getCdp().getApell_paterno_cdp(),
                   x.getCdp().getApell_materno_cdp(),
                   x.getCdp().getNombre_cdp(),
                   x.getValor_contable_tasa(),
                   x.getValor_comercial_tasa(),
                   x.getValor_liquidez_tasa(),
                   x.getMonto_cubierto_gara_tasa(),
                   x.getAvaluo_fiscal_tasa(),
                   x.getMonto_residual_tasa(),
                   x.getValor_pesos_tasa(),
                   x.getNombre_tasador(),
                   x.getCdp().getFech_extin_cdp()
                };
               aux = arr;
               modelo.addRow(aux);
                }
            }
    }//GEN-LAST:event_btnBuscarTodasLasGarantiasCDPActionPerformed

    private void btnImprimirTasacionHistoricaHipoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnImprimirTasacionHistoricaHipoActionPerformed
         try {
            
        int fila= 0;
  
        List Resultados = new ArrayList();
        ReporteTasacionHistoricaDTO tipo;
        Resultados.clear();
        
        for(fila = 0; fila< jTTasacionH.getRowCount(); fila++)
        {
            
           tipo = new ReporteTasacionHistoricaDTO(
                          String.valueOf(jTTasacionH.getValueAt(fila, 0)),
                   " " +  String.valueOf(jTTasacionH.getValueAt(fila, 1)),
                   " " +  String.valueOf(jTTasacionH.getValueAt(fila, 2)),
                   " " +  String.valueOf(jTTasacionH.getValueAt(fila, 3)),
                   " " +  String.valueOf(jTTasacionH.getValueAt(fila, 4)),
                   " " +  String.valueOf(jTTasacionH.getValueAt(fila, 5)),
                   " " +  String.valueOf(jTTasacionH.getValueAt(fila, 6)),
                   " " +  String.valueOf(jTTasacionH.getValueAt(fila, 7)),
                   " " +  String.valueOf(jTTasacionH.getValueAt(fila, 8)),
                   " " +  String.valueOf(jTTasacionH.getValueAt(fila, 9)),
                   " " +  String.valueOf(jTTasacionH.getValueAt(fila, 10)),
                   " " +  String.valueOf(jTTasacionH.getValueAt(fila, 11)),
                   " " +  String.valueOf(jTTasacionH.getValueAt(fila, 12)) + "\n");
           Resultados.add(tipo);

        }
        
            String reportSource = "C:\\Users\\SoftGroup\\Documents\\NetBeansProjects\\trunk\\AppGarantias\\build\\classes\\Reporte\\ReporteTasacionHistorica.jrxml";

            JasperReport jr = JasperCompileManager.compileReport(reportSource);
            
            
            JFrame reporte = new JFrame();
            reporte.setSize(900, 700);
            
            reporte.setLocationRelativeTo(null);
            reporte.setTitle("IMPRESIÓN");
            String fechaImpresion = String.valueOf(Fechas.FechaSistema());
            
            Map<String, Object> map = new HashMap<String, Object>();
            
            map.put("Titulo", "Sistema Gestión de Garantías Bancarias");
            map.put("subtitulo", "Reporte Tasación Historica");
            map.put("fecha", fechaImpresion);
            map.put("nombreBanco", "Banco xxxxxx");
            
            
            JRBeanCollectionDataSource coleccion = new JRBeanCollectionDataSource(Resultados);
            JasperPrint jp = JasperFillManager.fillReport(jr, map, coleccion);
            JRViewer jv = new JRViewer(jp);
            reporte.getContentPane().add(jv);
            reporte.setVisible(true);
            
            
            
        } catch (JRException e) {
            e.printStackTrace();
            Logger.getLogger(FormularioTasacionHistorica.class.getName()).log(Level.SEVERE, null, e);
        }
    }//GEN-LAST:event_btnImprimirTasacionHistoricaHipoActionPerformed

    private void btnImprimirTasacionHistoricaAutoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnImprimirTasacionHistoricaAutoActionPerformed
        try {
            
        int fila= 0;
  
        List Resultados = new ArrayList();
        ReporteTasacionHistoricaDTO tipo;
        Resultados.clear();
        
        for(fila = 0; fila< jTAutoTasaH.getRowCount(); fila++)
        {
            
           tipo = new ReporteTasacionHistoricaDTO(
                          String.valueOf(jTAutoTasaH.getValueAt(fila, 0)),
                   " " +  String.valueOf(jTAutoTasaH.getValueAt(fila, 1)),
                   " " +  String.valueOf(jTAutoTasaH.getValueAt(fila, 2)),
                   " " +  String.valueOf(jTAutoTasaH.getValueAt(fila, 3)),
                   " " +  String.valueOf(jTAutoTasaH.getValueAt(fila, 4)),
                   " " +  String.valueOf(jTAutoTasaH.getValueAt(fila, 5)),
                   " " +  String.valueOf(jTAutoTasaH.getValueAt(fila, 6)),
                   " " +  String.valueOf(jTAutoTasaH.getValueAt(fila, 7)),
                   " " +  String.valueOf(jTAutoTasaH.getValueAt(fila, 8)),
                   " " +  String.valueOf(jTAutoTasaH.getValueAt(fila, 9)),
                   " " +  String.valueOf(jTAutoTasaH.getValueAt(fila, 10)),
                   " " +  String.valueOf(jTAutoTasaH.getValueAt(fila, 11)),
                   " " +  String.valueOf(jTAutoTasaH.getValueAt(fila, 12)) + "\n");
           Resultados.add(tipo);

        }
        
            String reportSource = "C:\\Users\\SoftGroup\\Documents\\NetBeansProjects\\trunk\\AppGarantias\\build\\classes\\Reporte\\ReporteTasacionHistorica.jrxml";

            JasperReport jr = JasperCompileManager.compileReport(reportSource);
            
            
            JFrame reporte = new JFrame();
            reporte.setSize(900, 700);
            
            reporte.setLocationRelativeTo(null);
            reporte.setTitle("IMPRESIÓN");
            String fechaImpresion = String.valueOf(Fechas.FechaSistema());
            
            Map<String, Object> map = new HashMap<String, Object>();
            
            map.put("Titulo", "Sistema Gestión de Garantías Bancarias");
            map.put("subtitulo", "Reporte Tasación Historica");
            map.put("fecha", fechaImpresion);
            map.put("nombreBanco", "Banco xxxxxx");
            
            
            JRBeanCollectionDataSource coleccion = new JRBeanCollectionDataSource(Resultados);
            JasperPrint jp = JasperFillManager.fillReport(jr, map, coleccion);
            JRViewer jv = new JRViewer(jp);
            reporte.getContentPane().add(jv);
            reporte.setVisible(true);
            
            
            
        } catch (JRException e) {
            e.printStackTrace();
            Logger.getLogger(FormularioTasacionHistorica.class.getName()).log(Level.SEVERE, null, e);
        }
    }//GEN-LAST:event_btnImprimirTasacionHistoricaAutoActionPerformed

    private void btnImprimirTasacionHistoricaWarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnImprimirTasacionHistoricaWarraActionPerformed
       try {
            
        int fila= 0;
  
        List Resultados = new ArrayList();
        ReporteTasacionHistoricaDTO tipo;
        Resultados.clear();
        
        for(fila = 0; fila< jTWarrantTasaHist.getRowCount(); fila++)
        {
            
           tipo = new ReporteTasacionHistoricaDTO(
                          String.valueOf(jTWarrantTasaHist.getValueAt(fila, 0)),
                   " " +  String.valueOf(jTWarrantTasaHist.getValueAt(fila, 1)),
                   " " +  String.valueOf(jTWarrantTasaHist.getValueAt(fila, 2)),
                   " " +  String.valueOf(jTWarrantTasaHist.getValueAt(fila, 3)),
                   " " +  String.valueOf(jTWarrantTasaHist.getValueAt(fila, 4)),
                   " " +  String.valueOf(jTWarrantTasaHist.getValueAt(fila, 5)),
                   " " +  String.valueOf(jTWarrantTasaHist.getValueAt(fila, 6)),
                   " " +  String.valueOf(jTWarrantTasaHist.getValueAt(fila, 7)),
                   " " +  String.valueOf(jTWarrantTasaHist.getValueAt(fila, 8)),
                   " " +  String.valueOf(jTWarrantTasaHist.getValueAt(fila, 9)),
                   " " +  String.valueOf(jTWarrantTasaHist.getValueAt(fila, 10)),
                   " " +  String.valueOf(jTWarrantTasaHist.getValueAt(fila, 11)),
                   " " +  String.valueOf(jTWarrantTasaHist.getValueAt(fila, 12)) + "\n");
           Resultados.add(tipo);

        }
        
            String reportSource = "C:\\Users\\SoftGroup\\Documents\\NetBeansProjects\\trunk\\AppGarantias\\build\\classes\\Reporte\\ReporteTasacionHistorica.jrxml";

            JasperReport jr = JasperCompileManager.compileReport(reportSource);
            
            
            JFrame reporte = new JFrame();
            reporte.setSize(900, 700);
            
            reporte.setLocationRelativeTo(null);
            reporte.setTitle("IMPRESIÓN");
            String fechaImpresion = String.valueOf(Fechas.FechaSistema());
            
            Map<String, Object> map = new HashMap<String, Object>();
            
            map.put("Titulo", "Sistema Gestión de Garantías Bancarias");
            map.put("subtitulo", "Reporte Tasación Historica");
            map.put("fecha", fechaImpresion);
            map.put("nombreBanco", "Banco xxxxxx");
            
            
            JRBeanCollectionDataSource coleccion = new JRBeanCollectionDataSource(Resultados);
            JasperPrint jp = JasperFillManager.fillReport(jr, map, coleccion);
            JRViewer jv = new JRViewer(jp);
            reporte.getContentPane().add(jv);
            reporte.setVisible(true);
            
            
            
        } catch (JRException e) {
            e.printStackTrace();
            Logger.getLogger(FormularioTasacionHistorica.class.getName()).log(Level.SEVERE, null, e);
        }
    }//GEN-LAST:event_btnImprimirTasacionHistoricaWarraActionPerformed

    private void btnTasacionHistoricaCDPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnTasacionHistoricaCDPActionPerformed
       try {
            
        int fila= 0;
  
        List Resultados = new ArrayList();
        ReporteTasacionHistoricaDTO tipo;
        Resultados.clear();
        
        for(fila = 0; fila< jTCDP.getRowCount(); fila++)
        {
            
           tipo = new ReporteTasacionHistoricaDTO(
                          String.valueOf(jTCDP.getValueAt(fila, 0)),
                   " " +  String.valueOf(jTCDP.getValueAt(fila, 1)),
                   " " +  String.valueOf(jTCDP.getValueAt(fila, 2)),
                   " " +  String.valueOf(jTCDP.getValueAt(fila, 3)),
                   " " +  String.valueOf(jTCDP.getValueAt(fila, 4)),
                   " " +  String.valueOf(jTCDP.getValueAt(fila, 5)),
                   " " +  String.valueOf(jTCDP.getValueAt(fila, 6)),
                   " " +  String.valueOf(jTCDP.getValueAt(fila, 7)),
                   " " +  String.valueOf(jTCDP.getValueAt(fila, 8)),
                   " " +  String.valueOf(jTCDP.getValueAt(fila, 9)),
                   " " +  String.valueOf(jTCDP.getValueAt(fila, 10)),
                   " " +  String.valueOf(jTCDP.getValueAt(fila, 11)),
                   " " +  String.valueOf(jTCDP.getValueAt(fila, 12)) + "\n");
           Resultados.add(tipo);

        }
        
            String reportSource = "C:\\Users\\SoftGroup\\Documents\\NetBeansProjects\\trunk\\AppGarantias\\build\\classes\\Reporte\\ReporteTasacionHistorica.jrxml";

            JasperReport jr = JasperCompileManager.compileReport(reportSource);
            
            
            JFrame reporte = new JFrame();
            reporte.setSize(900, 700);
            
            reporte.setLocationRelativeTo(null);
            reporte.setTitle("IMPRESIÓN");
            String fechaImpresion = String.valueOf(Fechas.FechaSistema());
            
            Map<String, Object> map = new HashMap<String, Object>();
            
            map.put("Titulo", "Sistema Gestión de Garantías Bancarias");
            map.put("subtitulo", "Reporte Tasación Historica");
            map.put("fecha", fechaImpresion);
            map.put("nombreBanco", "Banco xxxxxx");
            
            
            JRBeanCollectionDataSource coleccion = new JRBeanCollectionDataSource(Resultados);
            JasperPrint jp = JasperFillManager.fillReport(jr, map, coleccion);
            JRViewer jv = new JRViewer(jp);
            reporte.getContentPane().add(jv);
            reporte.setVisible(true);
            
            
            
        } catch (JRException e) {
            e.printStackTrace();
            Logger.getLogger(FormularioTasacionHistorica.class.getName()).log(Level.SEVERE, null, e);
        }
    }//GEN-LAST:event_btnTasacionHistoricaCDPActionPerformed

    /**
     * @param args the command line arguments
     */
//    public static void main(String args[]) {
//        /*
//         * Set the Nimbus look and feel
//         */
//        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
//        /*
//         * If Nimbus (introduced in Java SE 6) is not available, stay with the
//         * default look and feel. For details see
//         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
//         */
//        try {
//            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
//                if ("Nimbus".equals(info.getName())) {
//                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
//                    break;
//                }
//            }
//        } catch (ClassNotFoundException ex) {
//            java.util.logging.Logger.getLogger(FormularioTasacionHistorica.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (InstantiationException ex) {
//            java.util.logging.Logger.getLogger(FormularioTasacionHistorica.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (IllegalAccessException ex) {
//            java.util.logging.Logger.getLogger(FormularioTasacionHistorica.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
//            java.util.logging.Logger.getLogger(FormularioTasacionHistorica.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        }
//        //</editor-fold>
//
//        /*
//         * Create and display the form
//         */
//        java.awt.EventQueue.invokeLater(new Runnable() {
//
//            public void run() {
//                new FormularioTasacionHistorica().setVisible(true);
//            }
//        });
//    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnBuscarCDPTasaH;
    private javax.swing.JButton btnBuscarCDPTasaHist;
    private javax.swing.JButton btnBuscarFechaTasa;
    private javax.swing.JButton btnBuscarFechaTasaHist;
    private javax.swing.JButton btnBuscarTasaH;
    private javax.swing.JButton btnBuscarTasaHis;
    private javax.swing.JButton btnBuscarTodasLasGarantiasAuto;
    private javax.swing.JButton btnBuscarTodasLasGarantiasCDP;
    private javax.swing.JButton btnBuscarTodasLasGarantiasWarrant;
    private javax.swing.JButton btnBuscarTodasLasGarantiashipo;
    private javax.swing.JButton btnBuscarWarraTasaH;
    private javax.swing.JButton btnImprimirTasacionHistoricaAuto;
    private javax.swing.JButton btnImprimirTasacionHistoricaHipo;
    private javax.swing.JButton btnImprimirTasacionHistoricaWarra;
    private javax.swing.JButton btnRutTasaWarra;
    private javax.swing.JButton btnTasacionHistoricaCDP;
    private javax.swing.JButton btnVolver;
    private javax.swing.JButton btnVolver1;
    private javax.swing.JButton btnVolver2;
    private javax.swing.JButton btnVolver3;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.ButtonGroup buttonGroup2;
    private javax.swing.ButtonGroup buttonGroup3;
    private javax.swing.ButtonGroup buttonGroup4;
    private javax.swing.JCheckBox chkBuscarFechCDPTasaH;
    private javax.swing.JCheckBox chkBuscarPorFechaTasa;
    private javax.swing.JCheckBox chkBuscarPorRut;
    private javax.swing.JCheckBox chkBuscarRutTasaH;
    private javax.swing.JCheckBox chkBuscarRutWarraTasaH;
    private javax.swing.JCheckBox chkBuscarTodasLasGarantiasAuto;
    private javax.swing.JCheckBox chkBuscarTodasLasGarantiasCDP;
    private javax.swing.JCheckBox chkBuscarTodasLasGarantiasWarrant;
    private javax.swing.JCheckBox chkBuscarTodasLasGarantiashipo;
    private javax.swing.JCheckBox chkFechaTasaH;
    private javax.swing.JCheckBox chkFechaWarraTasaH;
    private javax.swing.JCheckBox chkRutTasaH;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel15;
    private javax.swing.JPanel jPanel16;
    private javax.swing.JPanel jPanel17;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JPanel jPanelBuscarTodasLasGarantiasAuto;
    private javax.swing.JPanel jPanelBuscarTodasLasGarantiasCDP;
    private javax.swing.JPanel jPanelBuscarTodasLasGarantiasWarrant;
    private javax.swing.JPanel jPanelBuscarTodasLasGarantiashipo;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane10;
    private javax.swing.JScrollPane jScrollPane11;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane7;
    private javax.swing.JScrollPane jScrollPane9;
    private javax.swing.JTable jTAutoTasaH;
    private javax.swing.JTable jTCDP;
    private javax.swing.JTable jTTasacionH;
    private javax.swing.JTable jTWarrantTasaHist;
    private javax.swing.JTabbedPane jTabbedPane2;
    private com.toedter.calendar.JDateChooser jcDesdeTasaAuto;
    private com.toedter.calendar.JDateChooser jcDesdeTasaCdp;
    private com.toedter.calendar.JDateChooser jcDesdeTasaH;
    private com.toedter.calendar.JDateChooser jcDesdeWarraTasaH;
    private com.toedter.calendar.JDateChooser jcHastaTasaAuto;
    private com.toedter.calendar.JDateChooser jcHastaTasaCdp;
    private com.toedter.calendar.JDateChooser jcHastaTasaH;
    private com.toedter.calendar.JDateChooser jcHastaWarraaTasaH;
    private javax.swing.JPanel pnlIngreseRutGarante;
    private javax.swing.JPanel pnlIngreseRutGarante1;
    private javax.swing.JPanel pnlIngreseRutGarante2;
    private javax.swing.JPanel pnlIngreseRutGarante3;
    private javax.swing.JPanel pnlIngreseRutGarante4;
    private javax.swing.JPanel pnlIngreseRutGarante5;
    private javax.swing.JPanel pnlIngreseRutGarante6;
    private javax.swing.JPanel pnlIngreseRutGarante7;
    private javax.swing.JTextField txtCDPTasHist;
    private javax.swing.JTextField txtRutTasaHAuto;
    private javax.swing.JTextField txtRutTasaWarra;
    private javax.swing.JTextField txtRutTasacionH;
    // End of variables declaration//GEN-END:variables
}
